package models
import (
    "gorm.io/gorm"
)
type Review struct {
	gorm.Model
	UserID    uint   `gorm:"not null"`
	ProductID uint   `gorm:"not null"`
	Rating    int    `gorm:"check:rating >= 1 AND rating <= 5"`
	Comment   string
	User      User
	Product   Product
}